package com.zbkj.admin.quartz;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Quartz配置类
 * @Author 指缝de阳光
 * @Date 2025/6/6
 * @Version 1.0
 */
@Component
public class QuartzConfig {

    @Value("${quartz.enable:true}")
    private Boolean enable;

    public static Boolean ENABLE_VALUE;

    @PostConstruct
    public void init() {
        ENABLE_VALUE = this.enable;
    }
}